package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.TStudentDetailMapper;
import com.ruoyi.student.domain.TStudentDetail;
import com.ruoyi.student.service.ITStudentDetailService;

/**
 * 学生详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
@Service
public class TStudentDetailServiceImpl implements ITStudentDetailService 
{
    @Autowired
    private TStudentDetailMapper tStudentDetailMapper;

    /**
     * 查询学生详情
     * 
     * @param id 学生详情主键
     * @return 学生详情
     */
    @Override
    public TStudentDetail selectTStudentDetailById(Long id)
    {
        return tStudentDetailMapper.selectTStudentDetailById(id);
    }

    /**
     * 查询学生详情列表
     * 
     * @param tStudentDetail 学生详情
     * @return 学生详情
     */
    @Override
    public List<TStudentDetail> selectTStudentDetailList(TStudentDetail tStudentDetail)
    {
        return tStudentDetailMapper.selectTStudentDetailList(tStudentDetail);
    }

    /**
     * 新增学生详情
     * 
     * @param tStudentDetail 学生详情
     * @return 结果
     */
    @Override
    public int insertTStudentDetail(TStudentDetail tStudentDetail)
    {
        return tStudentDetailMapper.insertTStudentDetail(tStudentDetail);
    }

    /**
     * 修改学生详情
     * 
     * @param tStudentDetail 学生详情
     * @return 结果
     */
    @Override
    public int updateTStudentDetail(TStudentDetail tStudentDetail)
    {
        return tStudentDetailMapper.updateTStudentDetail(tStudentDetail);
    }

    /**
     * 批量删除学生详情
     * 
     * @param ids 需要删除的学生详情主键
     * @return 结果
     */
    @Override
    public int deleteTStudentDetailByIds(Long[] ids)
    {
        return tStudentDetailMapper.deleteTStudentDetailByIds(ids);
    }

    /**
     * 删除学生详情信息
     * 
     * @param id 学生详情主键
     * @return 结果
     */
    @Override
    public int deleteTStudentDetailById(Long id)
    {
        return tStudentDetailMapper.deleteTStudentDetailById(id);
    }
}
